/*
 * Copyright (c) 2025 Industrial Software Feature Database
 */
package com.comac.ins.isfd.domain.bo;

import com.comac.ins.common.core.validate.AddGroup;
import com.comac.ins.common.core.validate.EditGroup;
import com.comac.ins.common.mybatis.core.domain.BaseEntity;
import com.comac.ins.isfd.domain.IsfdDatabaseDataImport;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 数据采集导入主业务对象 isfd_database_data_import
 *
 * @author Lion Li
 * @date 2025-03-20
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = IsfdDatabaseDataImport.class, reverseConvertGenerate = false)
public class IsfdDatabaseDataImportBo extends BaseEntity {

    /**
     * 自增主键，唯一标识每一个记录
     */
    @NotNull(message = "自增主键，唯一标识每一个记录不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 场景-数据库-模型关系id
     */
    @NotNull(message = "场景-数据库-模型关系id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long businessDatabaseRefId;

    /**
     * 数据所属者id
     */
    @NotBlank(message = "数据所属者id不能为空", groups = { AddGroup.class, EditGroup.class })
    private String dataOwnerId;

    /**
     * 数据所属者名称
     */
    @NotBlank(message = "数据所属者名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String dataOwnerName;

    /**
     * 数据安全级别，高、中、低
     */
    @NotBlank(message = "数据安全级别，高、中、低不能为空", groups = { AddGroup.class, EditGroup.class })
    private String dataSafeLevel;

    /**
     * 数据保留政策，永久、十年、一年
     */
    @NotBlank(message = "数据保留政策，永久、十年、一年不能为空", groups = { AddGroup.class, EditGroup.class })
    private String dataRetentionPolicy;

    /**
     * 一次导入的模型数量
     */
    @NotNull(message = "一次导入的模型数量不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long modelCount;


}
